(window.t_forms__lang = (
  window.navigator.userLanguage || window.navigator.language
)
  .toUpperCase()
  .slice(0, 2)),
  (window.scriptSysPayment = {}),
  (window.handlerSysPayment = {}),
  (window.isInitEventsZB = {}),
  (window.isInitEventsCustomMask = {}),
  (window.initForms = {}),
  (window.tildaForm = {
    versionLib: '02.001',
    endpoint: 'forms.tildacdn.com',
    isRecaptchaScriptInit: !1,
    currentFormProccessing: !1,
  }),
  t_onReady(function () {
    var allrecords = document.getElementById('allrecords');
    if (allrecords) {
      var projectLang = allrecords.getAttribute('data-tilda-project-lang');
      projectLang && (window.t_forms__lang = projectLang);
      var rootzoneapi = allrecords.getAttribute('data-tilda-root-zone');
      rootzoneapi &&
        (window.tildaForm.endpoint = 'forms.tildaapi.' + rootzoneapi);
    }
    t_forms__initForms();
    var isST100 = !!document.querySelector('.t706'),
      isST105 = !!document.querySelector('.js-payment-systembox'),
      isExistsPay = !!document.querySelector('input[name=tld_product]');
    if (isST100 || isST105 || isExistsPay) {
      var fileName = 'tilda-forms-payments-1.0',
        script;
      if (!document.head.querySelector('script[src*="' + fileName + '"]'))
        ((script = document.createElement('script')).type = 'text/javascript'),
          (script.src =
            'https://static.tildacdn.com/js/' + fileName + '.min.js'),
          (script.onerror = function () {
            console.error('Failed to load tilda-forms-payments: ', this.src);
          }),
          document.head.appendChild(script);
    }
    var lang = window.t_forms__lang;
    if ('RU' !== lang && 'EN' !== lang) {
      var fileName = 'tilda-forms-dict-1.0',
        script;
      if (!document.head.querySelector('script[src*="' + fileName + '"]'))
        ((script = document.createElement('script')).type = 'text/javascript'),
          (script.src =
            'https://static.tildacdn.com/js/' + fileName + '.min.js'),
          (script.onerror = function () {
            console.error('Failed to load tilda-forms-dictionary: ', this.src);
          }),
          document.head.appendChild(script);
    }
  }),
  (window.tildaForm.captchaCallback = function () {
    if (
      !window.tildaForm.currentFormProccessing ||
      !window.tildaForm.currentFormProccessing.form
    )
      return !1;
    window.tildaForm.send(
      window.tildaForm.currentFormProccessing.form,
      window.tildaForm.currentFormProccessing.btn,
      window.tildaForm.currentFormProccessing.formtype,
      window.tildaForm.currentFormProccessing.formskey,
    ),
      (window.tildaForm.currentFormProccessing = !1);
  }),
  (window.tildaForm_customMasksLoad = function () {
    if (!0 !== window.isInitEventsCustomMask) {
      var script = document.createElement('script');
      (script.type = 'text/javascript'),
        (script.src =
          'https://static.tildacdn.com/js/tilda-forms-custommask-1.0.min.js'),
        document.head.appendChild(script),
        (script.onload = function () {
          window.isInitEventsCustomMask = !0;
        });
    }
  }),
  (window.tildaForm_initMasks = function () {
    var inputsCustomMask = document.querySelectorAll('.js-tilda-mask');
    if (inputsCustomMask.length && !0 !== window.isInitEventsCustomMask)
      return (
        window.tildaForm_customMasksLoad(),
        void window.setTimeout(function () {
          window.tildaForm_initMasks();
        }, 100)
      );
    !0 === window.isInitEventsCustomMask &&
      Array.prototype.forEach.call(inputsCustomMask, function (input) {
        t_asyncLoad(input);
      });
  }),
  t_onReady(function () {
    window.tildaForm_initMasks();
  }),
  (window.tildaForm.validate = function (form) {
    form instanceof Element || (form = form[0]);
    for (
      var inputs = form.querySelectorAll('.js-tilda-rule'),
        arrError = [],
        isEmptyValue = !0,
        i = 0;
      i < inputs.length;
      i++
    ) {
      var input = inputs[i],
        inputGroup = input.closest('.t-input-group'),
        isHidden;
      if (
        !(
          inputGroup &&
          'true' === inputGroup.getAttribute('data-hidden-by-condition')
        )
      ) {
        var isReq = !!parseInt(input.getAttribute('data-tilda-req') || 0, 10),
          dataRule = input.getAttribute('data-tilda-rule') || 'none',
          regExp = '',
          strValue = '',
          minLength = input.getAttribute('data-tilda-rule-minlength') || 0,
          maxLength = input.getAttribute('data-tilda-rule-maxlength') || 0,
          objError = {},
          value = input.value,
          valueNoSpace = '',
          inputType = input.getAttribute('type'),
          inputName = input.getAttribute('name'),
          dataFormCart = form.getAttribute('data-formcart');
        (objError.obj = input),
          (objError.type = []),
          value &&
            value.length &&
            ((valueNoSpace = value.replace(
              /[\s\u0000—\u001F\u2000-\u200F\uFEFF\u2028-\u202F\u205F-\u206F]/gi,
              '',
            )),
            (value = value.trim())),
          value.length > 0 && (isEmptyValue = !1),
          minLength && (minLength = parseInt(minLength, 10)),
          maxLength && (maxLength = parseInt(maxLength, 10));
        var isEmpty = !value.length && !valueNoSpace.length,
          isCheckBoxOrRadio = 'checkbox' === inputType || 'radio' === inputType,
          isChecked = !form.querySelectorAll(
            '[name="' + inputName + '"]:checked',
          ).length;
        if (isReq && (isEmpty || (isCheckBoxOrRadio && isChecked)))
          objError.type.push('req');
        else {
          switch (dataRule) {
            case 'email':
              (regExp =
                /^(?!\.)(?!.*\.\.)[a-zA-Zёа-яЁА-Я0-9\u2E80-\u2FD5\u3190-\u319f\u3400-\u4DBF\u4E00-\u9FCC\uF900-\uFAAD_\.\-\+]{0,63}[a-zA-Zёа-яЁА-Я0-9\u2E80-\u2FD5\u3190-\u319f\u3400-\u4DBF\u4E00-\u9FCC\uF900-\uFAAD_\-\+]@[a-zA-Zёа-яЁА-ЯЁёäöüÄÖÜßèéû0-9][a-zA-Zёа-яЁА-ЯЁёäöüÄÖÜßèéû0-9\.\-]{0,253}\.[a-zA-Zёа-яЁА-Я]{2,11}$/gi),
                value.length &&
                  !value.match(regExp) &&
                  objError.type.push('email');
              break;
            case 'url':
              (regExp =
                /^((https?|ftp):\/\/)?[a-zA-Zёа-яЁА-ЯЁёäöüÄÖÜßèéûşç0-9][a-zA-Zёа-яЁА-ЯЁёäöüÄÖÜßèéûşç0-9_\.\-]{0,253}\.[a-zA-Zёа-яЁА-Я]{2,10}\/?$/gi),
                value.length &&
                  ((strValue = (strValue =
                    (strValue = value.split('//')) && strValue.length > 1
                      ? strValue[1]
                      : strValue[0]).split('/')) &&
                  strValue.length &&
                  strValue[0]
                    ? (strValue = strValue[0]).match(regExp) ||
                      objError.type.push('url')
                    : ((strValue && !strValue[0]) || objError.type.push('url'),
                      (strValue = '')));
              break;
            case 'phone':
              var phoneMask = input.getAttribute('data-tilda-mask'),
                strRegExp = '^[0-9()+-';
              phoneMask &&
                (-1 !== phoneMask.indexOf('*')
                  ? (strRegExp += 'a-zёа-я')
                  : (-1 !== phoneMask.indexOf('a') && (strRegExp += 'a-z'),
                    -1 !== phoneMask.indexOf('а') && (strRegExp += 'а-яё'))),
                (strRegExp += ']+$'),
                (regExp = new RegExp(strRegExp, 'gi')),
                valueNoSpace.length && !valueNoSpace.match(regExp)
                  ? objError.type.push('phone')
                  : (1 ==
                      (strValue = valueNoSpace.replace(/[^0-9]+/g, '')).indexOf(
                        '000',
                      ) ||
                      (1 == strValue.indexOf('111') &&
                        '9' != strValue.substring(0, 1)) ||
                      (1 == strValue.indexOf('222') &&
                        '5' != strValue.substring(0, 1)) ||
                      1 == strValue.indexOf('333') ||
                      1 == strValue.indexOf('444') ||
                      (1 == strValue.indexOf('555') &&
                        '0' != strValue.substring(0, 1)) ||
                      (1 == strValue.indexOf('666') &&
                        '0' != strValue.substring(0, 1)) ||
                      (1 == strValue.indexOf('8888') &&
                        '4' != strValue.substring(0, 1))) &&
                    objError.type.push('phone');
              break;
            case 'number':
              (regExp = /^[0-9]+$/gi),
                valueNoSpace.length > 0 &&
                  !valueNoSpace.match(regExp) &&
                  objError.type.push('number');
              break;
            case 'date':
              var format = {
                'DD-MM-YYYY':
                  /^(0[1-9]|1[0-9]|2[0-9]|3[01])[\-\.\/](0[1-9]|1[012])[\-\.\/][0-9]{4}$/,
                'MM-DD-YYYY':
                  /^(0[1-9]|1[012])[\-\.\/](0[1-9]|1[0-9]|2[0-9]|3[01])[\-\.\/][0-9]{4}$/,
                'YYYY-MM-DD':
                  /^[0-9]{4}[\-\.\/](0[1-9]|1[012])[\-\.\/](0[1-9]|1[0-9]|2[0-9]|3[01])$/,
              };
              valueNoSpace.length > 0 &&
                !valueNoSpace.match(
                  format[input.getAttribute('data-tilda-dateformat')] ||
                    /^[0-9]{1,4}[\-\.\/][0-9]{1,2}[\-\.\/][0-9]{1,4}$/gi,
                ) &&
                objError.type.push('date');
              break;
            case 'time':
              (regExp = /^[0-9]{2}[:\.][0-9]{2}$/gi),
                valueNoSpace.length > 0 &&
                  !valueNoSpace.match(regExp) &&
                  objError.type.push('time');
              break;
            case 'name':
              (regExp =
                /^([ЁёäöüÄÖÜßèéûҐґЄєІіЇїӐӑЙйК̆к̆Ӄ̆ӄ̆Ԛ̆ԛ̆Г̆г̆Ҕ̆ҕ̆ӖӗѢ̆ѣ̆ӁӂꚄ̆ꚅ̆ҊҋО̆о̆Ө̆ө̆Ꚍ̆ꚍ̆ЎўХ̆х̆Џ̆џ̆Ꚏ̆ꚏ̆Ꚇ̆ꚇ̆Ҽ̆ҽ̆Ш̆ш̆Ꚗ̆ꚗ̆Щ̆щ̆Ы̆ы̆Э̆э̆Ю̆ю̆Я̆я̆А́а́ЃѓД́д́Е́е́Ё́ёӘ́ә́З́з́И́и́І́і́Ї́ї́ЌќЛ́л́Н́н́О́о́Р́р́С́с́Т́т́У́у́Ӱ́ӱ́Ү́ү́Х́х́Ц́ц́Ы́ы́Э́э́Ӭ́ӭ́Ю́ю́Ю̈́ю̈́Я́я́Ѣ́ѣ́ҒғӺӻҒ̌ғ̌Ј̵ј̵ҞҟҜҝԞԟӨөҎҏҰұӾӿҸҹҌҍҢңҚқҒғӘәҺһІіҰұҮүӨөȺⱥꜺꜻƂƃɃƀȻȼꞒꞓƋƌĐđɆɇǤǥꞠꞡĦħƗɨƗ́ɨ́Ɨ̀ɨ̀Ɨ̂ɨ̂Ɨ̌ɨ̌Ɨ̃ɨ̃Ɨ̄ɨ̄Ɨ̈ɨ̈Ɨ̋ɨ̋Ɨ̏ɨ̏Ɨ̧ɨ̧Ɨ̧̀ɨ̧̀Ɨ̧̂ɨ̧̂Ɨ̧̌ɨ̧̌ᵼɈɉɟɟ̟ʄʄ̊ʄ̥K̵k̵ꝀꝁꝂꝃꝄꝅꞢꞣŁłł̓Ł̣ł̣ᴌȽƚⱠⱡꝈꝉƛƛ̓ꞤꞥꝊꝋØøǾǿØ̀ø̀Ø̂øØ̌ø̌Ø̄ø̄Ø̃ø̃Ø̨ø̨Ø᷎ø᷎ᴓⱣᵽꝐꝑꝖꝗꝘꝙɌɍꞦꞧꞨꞩẜẝŦŧȾⱦᵺꝤꝥꝦꝧɄʉɄ́ʉ́Ʉ̀ʉ̀Ʉ̂ʉ̂Ʉ̌ʉ̌Ʉ̄ʉ̄Ʉ̃ʉ̃Ʉ̃́ʉ̃́Ʉ̈ʉ̈ʉ̞ᵾU̸u̸ᵿꝞꝟw̸ɎɏƵƶA-Za-z\u00C0\u00C0-\u00C3\u00C8-\u00CA\u00CC\u00CD\u00D2-\u00D9\u00DA\u00DD\u00E0-\u00E3\u00E8\u00E9\u00EA\u00EC\u00ED\u00F2-\u00F5\u00F9\u00FA\u00FD\u0102\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01A0\u01A1\u01AF\u01B0\u1EA0\u1EA1-\u1EF9\u0027\u2019\u0300-\u03FF\u0400-\u04FF\u0500-\u05FF\u0600-\u06FF\u3040-\u30FF\u0041-\u007A\u00C0-\u02B8\uFB1D-\uFB1F\uFB2A-\uFB4E\u0E00-\u0E7F\u10A0-\u10FF\u3040-\u309F\u30A0-\u30FF\u2E80-\u2FD5\u3190-\u319f\u3400-\u4DBF\u4E00-\u9FCC\uF900-\uFAAD]{1,})([ЁёäöüÄÖÜßèéûҐґЄєІіЇїӐӑЙйК̆к̆Ӄ̆ӄ̆Ԛ̆ԛ̆Г̆г̆Ҕ̆ҕ̆ӖӗѢ̆ѣ̆ӁӂꚄ̆ꚅ̆ҊҋО̆о̆Ө̆ө̆Ꚍ̆ꚍ̆ЎўХ̆х̆Џ̆џ̆Ꚏ̆ꚏ̆Ꚇ̆ꚇ̆Ҽ̆ҽ̆Ш̆ш̆Ꚗ̆ꚗ̆Щ̆щ̆Ы̆ы̆Э̆э̆Ю̆ю̆Я̆я̆А́а́ЃѓД́д́Е́е́Ё́ёӘ́ә́З́з́И́и́І́і́Ї́ї́ЌќЛ́л́Н́н́О́о́Р́р́С́с́Т́т́У́у́Ӱ́ӱ́Ү́ү́Х́х́Ц́ц́Ы́ы́Э́э́Ӭ́ӭ́Ю́ю́Ю̈́ю̈́Я́я́Ѣ́ѣ́ҒғӺӻҒ̌ғ̌Ј̵ј̵ҞҟҜҝԞԟӨөҎҏҰұӾӿҸҹҌҍҢңҚқҒғӘәҺһІіҰұҮүӨөȺⱥꜺꜻƂƃɃƀȻȼꞒꞓƋƌĐđɆɇǤǥꞠꞡĦħƗɨƗ́ɨ́Ɨ̀ɨ̀Ɨ̂ɨ̂Ɨ̌ɨ̌Ɨ̃ɨ̃Ɨ̄ɨ̄Ɨ̈ɨ̈Ɨ̋ɨ̋Ɨ̏ɨ̏Ɨ̧ɨ̧Ɨ̧̀ɨ̧̀Ɨ̧̂ɨ̧̂Ɨ̧̌ɨ̧̌ᵼɈɉɟɟ̟ʄʄ̊ʄ̥K̵k̵ꝀꝁꝂꝃꝄꝅꞢꞣŁłł̓Ł̣ł̣ᴌȽƚⱠⱡꝈꝉƛƛ̓ꞤꞥꝊꝋØøǾǿØ̀ø̀Ø̂øØ̌ø̌Ø̄ø̄Ø̃ø̃Ø̨ø̨Ø᷎ø᷎ᴓⱣᵽꝐꝑꝖꝗꝘꝙɌɍꞦꞧꞨꞩẜẝŦŧȾⱦᵺꝤꝥꝦꝧɄʉɄ́ʉ́Ʉ̀ʉ̀Ʉ̂ʉ̂Ʉ̌ʉ̌Ʉ̄ʉ̄Ʉ̃ʉ̃Ʉ̃́ʉ̃́Ʉ̈ʉ̈ʉ̞ᵾU̸u̸ᵿꝞꝟw̸ɎɏƵƶA-Za-z\u00C0\u00C0-\u00C3\u00C8-\u00CA\u00CC\u00CD\u00D2-\u00D9\u00DA\u00DD\u00E0-\u00E3\u00E8\u00E9\u00EA\u00EC\u00ED\u00F2-\u00F5\u00F9\u00FA\u00FD\u0102\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01A0\u01A1\u01AF\u01B0\u1EA0\u1EA1-\u1EF9\u0041-\u007A\u00C0-\u02B8\u0300-\u03FF\u0400-\u04FF\u0500-\u05FF\u0600-\u06FF\u3040-\u30FF\uFB1D-\uFB1F\uFB2A-\uFB4E\u0E00-\u0E7F\u10A0-\u10FF\u3040-\u309F\u30A0-\u30FF\u2E80-\u2FD5\u3190-\u319f\u3400-\u4DBF\u4E00-\u9FCC\uF900-\uFAAD\-\'\‘\ʼ\s\.]{0,})$/gi),
                value.length &&
                  !value.match(regExp) &&
                  objError.type.push('name');
              break;
            case 'nameeng':
              (regExp = /^([A-Za-z\s]{1,}((\-)?[A-Za-z\.\s](\')?){0,})*$/i),
                value.length &&
                  !value.match(regExp) &&
                  objError.type.push('nameeng');
              break;
            case 'namerus':
              (regExp = /^([А-Яа-яЁё\s]{1,}((\-)?[А-Яа-яЁё\.\s](\')?){0,})*$/i),
                value.length &&
                  !value.match(regExp) &&
                  objError.type.push('namerus');
              break;
            case 'string':
              (regExp =
                /^[A-Za-zА-Яа-я0-9ЁёЁёäöüÄÖÜßèéûӐӑЙйК̆к̆Ӄ̆ӄ̆Ԛ̆ԛ̆Г̆г̆Ҕ̆ҕ̆ӖӗѢ̆ѣ̆ӁӂꚄ̆ꚅ̆ҊҋО̆о̆Ө̆ө̆Ꚍ̆ꚍ̆ЎўХ̆х̆Џ̆џ̆Ꚏ̆ꚏ̆Ꚇ̆ꚇ̆Ҽ̆ҽ̆Ш̆ш̆Ꚗ̆ꚗ̆Щ̆щ̆Ы̆ы̆Э̆э̆Ю̆ю̆Я̆я̆А́а́ЃѓД́д́Е́е́Ё́ёӘ́ә́З́з́И́и́І́і́Ї́ї́ЌќЛ́л́Н́н́О́о́Р́р́С́с́Т́т́У́у́Ӱ́ӱ́Ү́ү́Х́х́Ц́ц́Ы́ы́Э́э́Ӭ́ӭ́Ю́ю́Ю̈́ю̈́Я́я́Ѣ́ѣ́ҒғӺӻҒ̌ғ̌Ј̵ј̵ҞҟҜҝԞԟӨөҎҏҰұӾӿҸҹҌҍҢңҚқҒғӘәҺһІіҰұҮүӨөȺⱥꜺꜻƂƃɃƀȻȼꞒꞓƋƌĐđɆɇǤǥꞠꞡĦħƗɨƗ́ɨ́Ɨ̀ɨ̀Ɨ̂ɨ̂Ɨ̌ɨ̌Ɨ̃ɨ̃Ɨ̄ɨ̄Ɨ̈ɨ̈Ɨ̋ɨ̋Ɨ̏ɨ̏Ɨ̧ɨ̧Ɨ̧̀ɨ̧̀Ɨ̧̂ɨ̧̂Ɨ̧̌ɨ̧̌ᵼɈɉɟɟ̟ʄʄ̊ʄ̥K̵k̵ꝀꝁꝂꝃꝄꝅꞢꞣŁłł̓Ł̣ł̣ᴌȽƚⱠⱡꝈꝉƛƛ̓ꞤꞥꝊꝋØøǾǿØ̀ø̀Ø̂øØ̌ø̌Ø̄ø̄Ø̃ø̃Ø̨ø̨Ø᷎ø᷎ᴓⱣᵽꝐꝑꝖꝗꝘꝙɌɍꞦꞧꞨꞩẜẝŦŧȾⱦᵺꝤꝥꝦꝧɄʉɄ́ʉ́Ʉ̀ʉ̀Ʉ̂ʉ̂Ʉ̌ʉ̌Ʉ̄ʉ̄Ʉ̃ʉ̃Ʉ̃́ʉ̃́Ʉ̈ʉ̈ʉ̞ᵾU̸u̸ᵿꝞꝟw̸ɎɏƵƶ\u0041-\u007A\u00C0-\u02B8\u0300-\u03FF\u0400-\u04FF\u0500-\u05FF\u0600-\u06FF\u3040-\u30FF\uFB1D-\uFB1F\uFB2A-\uFB4E\u0E00-\u0E7F\u10A0-\u10FF\u3040-\u309F\u30A0-\u30FF\u2E80-\u2FD5\u3190-\u319f\u3400-\u4DBF\u4E00-\u9FCC\uF900-\uFAAD,\.:;\"\'\`\-\_\+\?\!\%\$\@\*\&\^\s]$/i),
                value.length &&
                  !value.match(regExp) &&
                  objError.type.push('string');
              break;
            case 'chosevalue':
              var isOptionSelected;
              'true' === input.getAttribute('data-option-selected') ||
                objError.type.push('chosevalue');
              break;
            case 'promocode':
              'y' !== dataFormCart ||
                !valueNoSpace.length ||
                !window.tcart ||
                (window.tcart.promocode &&
                  window.tcart.prodamount_discountsum) ||
                objError.type.push('promocode');
              break;
            case 'deliveryreq':
              objError.type.push('deliveryreq');
          }
          minLength > 0 &&
            value.length &&
            value.length < minLength &&
            objError.type.push('minlength'),
            maxLength > 0 &&
              value.length &&
              value.length > maxLength &&
              objError.type.push('maxlength');
        }
        objError.type &&
          objError.type.length &&
          (arrError[arrError.length] = objError);
      }
    }
    if ('y' === dataFormCart) {
      var isMinOrderSetted = window.tcart_minorder > 0,
        isMinQuantitySetted = window.tcart_mincntorder > 0,
        prodAmount,
        objError,
        objError;
      if (isMinOrderSetted)
        if (
          (window.tcart.prodamount_withdiscount > 0
            ? window.tcart.prodamount_withdiscount
            : void 0 !== window.tcart.prodamount_withdyndiscount &&
              window.t_cart__discounts &&
              window.t_cart__discounts.length > 0
            ? window.tcart.prodamount_withdyndiscount
            : window.tcart.prodamount) < window.tcart_minorder
        )
          (objError = { obj: {}, type: [] }).type.push('minorder'),
            arrError.push(objError);
      if (isMinQuantitySetted && window.tcart.total < window.tcart_mincntorder)
        (objError = { obj: {}, type: [] }).type.push('minquantity'),
          arrError.push(objError);
    }
    return (
      isEmptyValue &&
        !arrError.length &&
        (arrError = [{ obj: 'none', type: ['emptyfill'] }]),
      arrError
    );
  }),
  (window.tildaForm.hideErrors = function (form) {
    if ('object' != typeof form || form.length) {
      form instanceof Element || (form = form[0]);
      var errorBoxes = form.querySelectorAll('.js-errorbox-all'),
        errorRule = form.querySelectorAll('.js-rule-error'),
        errorRuleAll = form.querySelectorAll('.js-error-rule-all'),
        successBox = form.querySelectorAll('.js-successbox'),
        errorControlBox = form.querySelectorAll('.js-error-control-box'),
        errorControlInput = form.querySelectorAll(
          '.js-error-control-box .t-input-error',
        ),
        errorPopup = document.getElementById('tilda-popup-for-error');
      Array.prototype.forEach.call(errorBoxes, function (error) {
        error.style.display = 'none';
      }),
        Array.prototype.forEach.call(errorRule, function (error) {
          error.style.display = 'none';
        }),
        Array.prototype.forEach.call(errorRuleAll, function (error) {
          error.innerHTML = '';
        }),
        Array.prototype.forEach.call(successBox, function (success) {
          success.style.display = 'none';
        }),
        Array.prototype.forEach.call(errorControlInput, function (error) {
          error.innerHTML = '';
        }),
        Array.prototype.forEach.call(errorControlBox, function (error) {
          t_removeClass(error, 'js-error-control-box');
        }),
        t_removeClass(form, 'js-send-form-error'),
        t_removeClass(form, 'js-send-form-success'),
        errorPopup && t_fadeOut(errorPopup);
    }
  }),
  (window.tildaForm.showErrorInPopup = function (form, arrErrors) {
    if (
      (form instanceof Element || (form = form[0]),
      !arrErrors || !arrErrors.length)
    )
      return !1;
    var formId = form.getAttribute('id'),
      inputBoxClassName = form.getAttribute('data-inputbox');
    inputBoxClassName || (inputBoxClassName = '.blockinput');
    var inputGroup = '',
      isErrorBox = !1,
      isShowErrors = !0,
      errorItem = '',
      errorInputs = '',
      strError = '',
      strCommonError = '',
      popupError = document.getElementById('tilda-popup-for-error');
    popupError ||
      (document.body.insertAdjacentHTML(
        'beforeend',
        '<div id="tilda-popup-for-error" class="js-form-popup-errorbox tn-form__errorbox-popup" style="display: none;"> <div class="t-form__errorbox-text t-text t-text_xs"> error </div> <div class="tn-form__errorbox-close js-errorbox-close"> <div class="tn-form__errorbox-close-line tn-form__errorbox-close-line-left"></div> <div class="tn-form__errorbox-close-line tn-form__errorbox-close-line-right"></div> </div> </div>',
      ),
      t_addEventListener(
        (popupError = document.getElementById('tilda-popup-for-error')),
        'click',
        function (event) {
          var target, closeBtn;
          if (
            (
              (event = event || window.event).target || event.srcElement
            ).closest('.js-errorbox-close')
          )
            return (
              event.preventDefault
                ? event.preventDefault()
                : (event.returnValue = !1),
              t_fadeOut(popupError),
              !1
            );
        },
      ));
    for (var i = 0; i < arrErrors.length; i++)
      if (arrErrors[i] && arrErrors[i].obj) {
        if (0 === i && 'none' === arrErrors[i].obj) {
          strCommonError =
            '<p class="t-form__errorbox-item">' +
            t_forms__getMsg('emptyfill') +
            '</p>';
          break;
        }
        var el = arrErrors[i].obj;
        el instanceof Element || (el = el[0]),
          el && (inputGroup = el.closest(inputBoxClassName)),
          inputGroup &&
            ((errorInputs = inputGroup.querySelectorAll('.t-input-error')),
            t_addClass(inputGroup, 'js-error-control-box'),
            errorInputs.length && (isErrorBox = !0));
        for (var j = 0; j < arrErrors[i].type.length; j++) {
          var error = arrErrors[i].type[j],
            localizedError = t_forms__getMsg(error);
          (strError = ''),
            (errorItem = form.querySelector('.js-rule-error-' + error))
              ? (errorItem.textContent && errorItem.innerText) ||
                !localizedError ||
                -1 !== strCommonError.indexOf(localizedError)
                ? ((strError = errorItem.textContent || errorItem.innerText),
                  -1 === strCommonError.indexOf(strError) &&
                    (strCommonError =
                      strCommonError +
                      '<p class="t-form__errorbox-item">' +
                      strError +
                      '</p>'))
                : (strCommonError =
                    strCommonError +
                    '<p class="t-form__errorbox-item">' +
                    localizedError +
                    '</p>')
              : localizedError &&
                -1 === strCommonError.indexOf(localizedError) &&
                (strCommonError =
                  strCommonError +
                  '<p class="t-form__errorbox-item">' +
                  localizedError +
                  '</p>'),
            isErrorBox &&
              (!strError && t_forms__getMsg(error + 'field')
                ? (strError = t_forms__getMsg(error + 'field'))
                : localizedError && (strError = localizedError),
              strError &&
                inputGroup &&
                ((errorInputs = inputGroup.querySelectorAll('.t-input-error')),
                Array.prototype.forEach.call(errorInputs, function (input) {
                  (input.innerHTML = strError), t_fadeIn(input);
                })));
        }
      }
    if (strCommonError) {
      popupError.querySelector('.t-form__errorbox-text').innerHTML =
        strCommonError;
      var errorsText = popupError.querySelectorAll('.t-form__errorbox-item');
      if (
        (Array.prototype.forEach.call(errorsText, function (text) {
          text.style.display = 'block';
        }),
        document.querySelector('.t1093 [data-elem-type="form"]'))
      ) {
        var activeZeroPopupHookList =
          window.tPopupObj && window.tPopupObj.openPopUpList;
        if (activeZeroPopupHookList && activeZeroPopupHookList.length) {
          var activeZeroPopupHook,
            activePopupSelector =
              '.t1093 .t-popup[data-tooltip-hook="' +
              activeZeroPopupHookList[activeZeroPopupHookList.length - 1] +
              '"]',
            activeZeroPopup = document.querySelector(activePopupSelector),
            currentZIndex = activeZeroPopup
              ? getComputedStyle(activeZeroPopup).zIndex
              : 0,
            defaultErrorPopupZIndex = 1e4;
          currentZIndex > 1e4 && (popupError.style.zIndex = currentZIndex + 1);
        } else popupError.style.zIndex = '';
      }
      t_fadeIn(popupError);
    }
    function t_forms__hidePopup(event) {
      var input;
      if (
        'INPUT' ===
        ((event = event || window.event).target || event.srcElement).tagName
      ) {
        var errorInputs = rec.querySelectorAll('form .t-input-error');
        t_fadeOut(popupError),
          Array.prototype.forEach.call(errorInputs, function (input) {
            (input.innerHTML = ''), t_fadeOut(input);
          }),
          window.t_forms__errorTimerID &&
            (window.clearTimeout(window.t_forms__errorTimerID),
            (window.t_forms__errorTimerID = 0)),
          (window.isInitEventsZB[formId] = !0);
      }
    }
    if (
      (window.t_forms__errorTimerID &&
        window.clearTimeout(window.t_forms__errorTimerID),
      (window.t_forms__errorTimerID = window.setTimeout(function () {
        t_fadeOut(popupError),
          (errorInputs = form.querySelectorAll('.t-input-error')),
          Array.prototype.forEach.call(errorInputs, function (input) {
            (input.innerHTML = ''), t_fadeOut(input);
          }),
          (window.t_forms__errorTimerID = 0);
      }, 1e4)),
      !window.isInitEventsZB[formId])
    ) {
      var rec = form.closest('.r'),
        eventFocus = 'focus';
      document.addEventListener || (eventFocus = 'focusin'),
        t_removeEventListener(rec, eventFocus, t_forms__hidePopup),
        t_addEventListener(rec, eventFocus, t_forms__hidePopup, !0),
        t_removeEventListener(rec, 'change', t_forms__hidePopup),
        t_addEventListener(rec, 'change', t_forms__hidePopup, !0);
    }
    return t_triggerEvent(form, 'tildaform:aftererror'), !0;
  }),
  (window.tildaForm.showErrors = function (form, arrErrors) {
    if (
      (form instanceof Element || (form = form[0]),
      !arrErrors || !arrErrors.length)
    )
      return !1;
    if ('y' === form.getAttribute('data-error-popup'))
      return tildaForm.showErrorInPopup(form, arrErrors);
    var inputBoxClassName = form.getAttribute('data-inputbox');
    inputBoxClassName || (inputBoxClassName = '.blockinput');
    for (
      var inputGroup = '',
        isErrorBox = !1,
        isShowErrors = !0,
        errorItem = '',
        errorInputs = '',
        strError = '',
        inputErrors = [],
        i = 0;
      i < arrErrors.length;
      i++
    )
      if (arrErrors[i] && arrErrors[i].obj) {
        if (0 === i && 'none' === arrErrors[i].obj) {
          errorItem = form.querySelectorAll('.js-rule-error-all');
          for (var j = 0; j < errorItem.length; j++) {
            (errorItem[j].innerHTML =
              '<a href="#" class="t-form__errorbox-link">' +
              t_forms__getMsg('emptyfill') +
              '</a>'),
              (errorItem[j].style.display = 'block');
            var firstInput = form.querySelectorAll('.t-input')[0],
              firstInputId;
            if (firstInput)
              t_forms__moveToErrorInput(
                firstInput.getAttribute('id'),
                errorItem[0],
              );
          }
          break;
        }
        var el = arrErrors[i].obj;
        el instanceof Element || (el = el[0]),
          el && (inputGroup = el.closest(inputBoxClassName)),
          inputGroup &&
            ((errorInputs = inputGroup.querySelectorAll('.t-input-error')),
            t_addClass(inputGroup, 'js-error-control-box'),
            errorInputs.length > 0 && (isErrorBox = !0));
        for (var j = 0; j < arrErrors[i].type.length; j++) {
          var error = arrErrors[i].type[j],
            inputId = arrErrors[i].obj.id;
          if (
            ((strError = ''),
            (errorItem = form.querySelectorAll('.js-rule-error-' + error))
              .length)
          )
            for (var k = 0; k < errorItem.length; k++) {
              var currentErrorItem;
              (currentErrorItem = errorItem[k]).getAttribute('data-rule-filled')
                ? (currentErrorItem.style.display = 'block')
                : ((currentErrorItem.textContent &&
                    currentErrorItem.innerText) ||
                  !t_forms__getMsg(error)
                    ? (strError =
                        errorItem[0].textContent || errorItem[0].innerText)
                    : (currentErrorItem.innerHTML =
                        '<a href="#" class="t-form__errorbox-link">' +
                        t_forms__getMsg(error) +
                        '</a>'),
                  (currentErrorItem.style.display = 'block'),
                  -1 === inputErrors.indexOf(error) &&
                    t_forms__moveToErrorInput(inputId, currentErrorItem),
                  inputErrors.push(error));
            }
          else if (
            t_forms__getMsg(error) &&
            (errorItem = form.querySelectorAll('.js-rule-error-all')).length
          )
            for (var k = 0; k < errorItem.length; k++) {
              var currentErrorItem;
              ((currentErrorItem = errorItem[k]).innerHTML =
                '<a href="#" class="t-form__errorbox-link">' +
                t_forms__getMsg(error) +
                '</a>'),
                (currentErrorItem.style.display = 'block'),
                -1 === inputErrors.indexOf(error) &&
                  t_forms__moveToErrorInput(inputId, currentErrorItem),
                inputErrors.push(error);
            }
          isErrorBox &&
            (!strError && t_forms__getMsg(error + 'field')
              ? (strError = t_forms__getMsg(error + 'field'))
              : !strError &&
                t_forms__getMsg(error) &&
                (strError = t_forms__getMsg(error)),
            strError &&
              inputGroup &&
              ((errorInputs = inputGroup.querySelectorAll('.t-input-error')),
              Array.prototype.forEach.call(errorInputs, function (input) {
                input.innerHTML = strError;
              })));
        }
      }
    var errorBoxes = form.querySelectorAll('.js-errorbox-all');
    return (
      Array.prototype.forEach.call(errorBoxes, function (error) {
        (error.style.display = 'block'), error.focus();
      }),
      t_triggerEvent(form, 'tildaform:aftererror'),
      !0
    );
  }),
  (window.tildaForm.addTildaCaptcha = function (form, formKey) {
    form instanceof Element || (form = form[0]);
    var formCaptchaBox = document.getElementById('tildaformcaptchabox'),
      tildaCaptcha = document.getElementById('js-tildaspec-captcha'),
      randomKey;
    formCaptchaBox && t_removeEl(formCaptchaBox),
      tildaCaptcha && t_removeEl(tildaCaptcha),
      form.insertAdjacentHTML(
        'beforeend',
        '<input type="hidden" name="tildaspec-tildacaptcha" id="js-tildaspec-captcha">',
      );
    try {
      randomKey = new Date().getTime() + '=' + parseInt(8 * Math.random(), 10);
    } catch (e) {
      randomKey = 'rnd=' + parseInt(8 * Math.random(), 10);
    }
    var strCaptcha =
      '<div id="tildaformcaptchabox" tabindex="-1" style="z-index: 99999999999; position:fixed; text-align: center; vertical-align: middle; top: 0px; left:0px; bottom: 0px; right: 0px; background: rgba(255,255,255,0.97);"><iframe id="captchaIframeBox" src="//' +
      window.tildaForm.endpoint +
      '/procces/captcha/?tildaspec-formid=' +
      form.getAttribute('id') +
      '&tildaspec-formskey=' +
      formKey +
      '&' +
      randomKey +
      '" frameborder="0" width="100%" height="100%"></iframe></div>';
    document.body.insertAdjacentHTML('beforeend', strCaptcha),
      window.removeEventListener('message', checkVerifyTildaCaptcha),
      window.addEventListener('message', checkVerifyTildaCaptcha),
      document.getElementById('tildaformcaptchabox').focus();
  }),
  (window.tildaForm.addMebersInfoToForm = function (form) {
    form instanceof Element || (form = form[0]);
    try {
      window.tildaForm.tildamember = {};
      var mauserInfo = form.querySelector('.js-tilda-mauserinfo');
      if (
        (mauserInfo && t_removeEl(mauserInfo),
        !window.mauser || !window.mauser.code || !window.mauser.email)
      )
        return !1;
      window.mauser.name &&
        (window.tildaForm.tildamember.name = window.mauser.name),
        (window.tildaForm.tildamember.email = window.mauser.email),
        (window.tildaForm.tildamember.code = window.mauser.code);
    } catch (error) {
      return console.log('addMebersInfoToForm exception: ', error), !1;
    }
    return !0;
  }),
  (window.tildaForm.closeSuccessPopup = function () {
    var successPopup = document.getElementById('tildaformsuccesspopup');
    successPopup &&
      (t_removeClass(document.body, 't-body_success-popup-showed'),
      /iPhone|iPad|iPod/i.test(navigator.userAgent) &&
        !window.MSStream &&
        window.tildaForm.unlockBodyScroll(),
      t_fadeOut(successPopup));
  }),
  (window.tildaForm.lockBodyScroll = function () {
    var body = document.body;
    if (!t_hasClass(body, 't-body_scroll-locked')) {
      var bodyScrollTop =
        void 0 !== window.pageYOffset
          ? window.pageYOffset
          : (
              document.documentElement ||
              document.body.parentNode ||
              document.body
            ).scrollTop;
      t_addClass(body, 't-body_scroll-locked'),
        (body.style.top = '-' + bodyScrollTop + 'px'),
        body.setAttribute('data-popup-scrolltop', bodyScrollTop);
    }
  }),
  (window.tildaForm.unlockBodyScroll = function () {
    var body = document.body;
    if (t_hasClass(body, 't-body_scroll-locked')) {
      var bodyScrollTop = body.getAttribute('data-popup-scrolltop');
      t_removeClass(body, 't-body_scroll-locked'),
        (body.style.top = null),
        body.removeAttribute('data-popup-scrolltop'),
        (document.documentElement.scrollTop = parseInt(bodyScrollTop));
    }
  }),
  (window.tildaForm.showSuccessPopup = function (message) {
    var strHtml = '',
      successPopup = document.getElementById('tildaformsuccesspopup'),
      successPopupText = document.getElementById('tildaformsuccesspopuptext'),
      body = document.body;
    if (!successPopup) {
      (strHtml +=
        '<style media="screen"> .t-form-success-popup { display: none; position: fixed; background-color: rgba(0,0,0,.8); top: 0px; left: 0px; width: 100%; height: 100%; z-index: 10000; overflow-y: auto; cursor: pointer; } .t-body_success-popup-showed { height: 100vh; min-height: 100vh; overflow: hidden; } .t-form-success-popup__window { width: 100%; max-width: 400px; position: absolute; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); left: 0px; right: 0px; margin: 0 auto; padding: 20px; box-sizing: border-box; } .t-form-success-popup__wrapper { background-color: #fff; padding: 40px 40px 50px; box-sizing: border-box; border-radius: 5px; text-align: center; position: relative; cursor: default; } .t-form-success-popup__text { padding-top: 20px; } .t-form-success-popup__close-icon { position: absolute; top: 14px; right: 14px; cursor: pointer; } @media screen and (max-width: 480px) { .t-form-success-popup__text { padding-top: 10px; } .t-form-success-popup__wrapper { padding-left: 20px; padding-right: 20px; } } </style>'),
        (strHtml +=
          '<div class="t-form-success-popup" style="display:none;" id="tildaformsuccesspopup"> <div class="t-form-success-popup__window"> <div class="t-form-success-popup__wrapper"> <svg class="t-form-success-popup__close-icon" xmlns="http://www.w3.org/2000/svg" width="14" height="14" class="t657__icon-close" viewBox="0 0 23 23"> <g fill-rule="evenodd"> <path d="M0 1.41L1.4 0l21.22 21.21-1.41 1.42z"/> <path d="M21.21 0l1.42 1.4L1.4 22.63 0 21.21z"/> </g> </svg> <svg width="50" height="50" fill="#62C584"> <path d="M25.1 49.28A24.64 24.64 0 0 1 .5 24.68 24.64 24.64 0 0 1 25.1.07a24.64 24.64 0 0 1 24.6 24.6 24.64 24.64 0 0 1-24.6 24.61zm0-47.45A22.87 22.87 0 0 0 2.26 24.68 22.87 22.87 0 0 0 25.1 47.52a22.87 22.87 0 0 0 22.84-22.84A22.87 22.87 0 0 0 25.1 1.83z"/> <path d="M22.84 30.53l-4.44-4.45a.88.88 0 1 1 1.24-1.24l3.2 3.2 8.89-8.9a.88.88 0 1 1 1.25 1.26L22.84 30.53z"/> </svg> <div class="t-form-success-popup__text t-descr t-descr_sm" id="tildaformsuccesspopuptext"> Thank You! </div> </div> </div> </div>'),
        body.insertAdjacentHTML('beforeend', strHtml),
        (successPopup = document.getElementById('tildaformsuccesspopup')),
        (successPopupText = document.getElementById(
          'tildaformsuccesspopuptext',
        ));
      var successPopupCloseBtn = successPopup.querySelector(
        '.t-form-success-popup__close-icon',
      );
      t_addEventListener(successPopup, 'click', function (event) {
        var target;
        ((event = event || window.event).target || event.srcElement) === this &&
          window.tildaForm.closeSuccessPopup();
      }),
        t_addEventListener(successPopupCloseBtn, 'click', function () {
          window.tildaForm.closeSuccessPopup();
        }),
        t_addEventListener(body, 'keydown', function (event) {
          var keyCode;
          27 == ((event = event || window.event).keyCode || event.which) &&
            window.tildaForm.closeSuccessPopup();
        });
    }
    (successPopupText.innerHTML = message),
      t_fadeIn(successPopup),
      t_addClass(body, 't-body_success-popup-showed'),
      /iPhone|iPad|iPod/i.test(navigator.userAgent) &&
        !window.MSStream &&
        setTimeout(function () {
          window.tildaForm.lockBodyScroll();
        }, 500);
  }),
  (window.tildaForm.successEnd = function (form, successUrl, successCallback) {
    form instanceof Element || (form = form[0]);
    var successBox = form.querySelector('.js-successbox'),
      successStr = t_forms__getMsg('success');
    if (successBox) {
      var dataSuccessMessage = successBox.getAttribute('data-success-message');
      dataSuccessMessage
        ? (successBox.innerHTML = dataSuccessMessage)
        : (successBox.textContent && successBox.innerText) ||
          dataSuccessMessage ||
          !successStr ||
          (successBox.innerHTML = successStr),
        'y' === form.getAttribute('data-success-popup')
          ? window.tildaForm.showSuccessPopup(successBox.innerHTML)
          : (successBox.style.display = 'block');
    }
    t_addClass(form, 'js-send-form-success'),
      successCallback &&
        0 === successCallback.indexOf('window.') &&
        (successCallback = successCallback.split('.')[1]),
      successCallback && 'function' == typeof window[successCallback]
        ? 'undefined' != typeof jQuery
          ? eval(successCallback + '(jQuery(form))')
          : eval(successCallback + '(form)')
        : successUrl &&
          setTimeout(function () {
            window.location.href = successUrl;
          }, 500),
      window.tildaForm.clearTCart(form);
    var upwidgetRemoveBtns = form.querySelectorAll(
        '.t-upwidget-container__data_table_actions_remove svg',
      ),
      inputText = form.querySelectorAll('input[type="text"]'),
      inputNumber = form.querySelectorAll('input[type="number"]'),
      inputEmail = form.querySelectorAll('input[type="email"]'),
      inputPhone = form.querySelectorAll(
        'input[type="tel"], input[type="hidden"][data-tilda-rule="phone"]',
      ),
      inputTextarea = form.querySelectorAll('textarea');
    Array.prototype.forEach.call(upwidgetRemoveBtns, function (widget) {
      t_triggerEvent(widget, 'click');
    }),
      Array.prototype.forEach.call(inputText, function (input) {
        input.value = '';
      }),
      Array.prototype.forEach.call(inputNumber, function (input) {
        input.value = '';
      }),
      Array.prototype.forEach.call(inputEmail, function (input) {
        input.value = '';
      }),
      Array.prototype.forEach.call(inputPhone, function (input) {
        input.value = '';
      }),
      Array.prototype.forEach.call(inputTextarea, function (textarea) {
        (textarea.innerHTML = ''), (textarea.value = '');
      }),
      'undefined' != typeof jQuery &&
        jQuery(form).data('tildaformresult', { tranId: '0', orderId: '0' }),
      (form.tildaTranId = '0'),
      (form.tildaOrderId = '0');
  }),
  (window.tildaForm.clearTCart = function (form) {
    if (
      (form instanceof Element || (form = form[0]),
      'y' === form.getAttribute('data-formcart'))
    ) {
      if (
        ((window.clearTCart = !0),
        (window.tcart = { amount: 0, currency: '', system: '', products: [] }),
        (window.tcart.system = 'none'),
        'object' == typeof localStorage)
      )
        try {
          localStorage.removeItem('tcart');
        } catch (error) {
          console.error(
            'Your web browser does not support localStorage. Code status: ',
            error,
          );
        }
      try {
        delete window.tcart, tcart__loadLocalObj();
      } catch (error) {}
      window.tcart_success = 'yes';
    }
  }),
  (window.tildaForm.send = function (form, btnSubmit, formType, formKey) {
    form instanceof Element || (form = form[0]),
      btnSubmit instanceof Element || (btnSubmit = btnSubmit[0]);
    var allRecords = document.getElementById('allrecords'),
      pageId = allRecords.getAttribute('data-tilda-page-id'),
      projectId = allRecords.getAttribute('data-tilda-project-id'),
      formId = form.getAttribute('id'),
      dataFormCart = form.getAttribute('data-formcart');
    (window.tildaForm.tildapayment = !1),
      ('y' === dataFormCart || form.closest('.t706__orderform')) &&
        window.tildaForm.addPaymentInfoToForm(form);
    try {
      window.mauser && window.tildaForm.addMebersInfoToForm(form);
    } catch (error) {}
    var inputItsGood = form.querySelector('input[name="form-spec-comments"]');
    if (
      (inputItsGood ||
        form.insertAdjacentHTML(
          'beforeend',
          '<div style="position: absolute; left: -5000px; bottom: 0; display: none;"><input type="text" name="form-spec-comments" value="Its good" class="js-form-spec-comments" tabindex="-1" /></div>',
        ),
      2 === formType || (!formType && formKey))
    ) {
      var tildaSpecs = {
        'tildaspec-cookie': document.cookie,
        'tildaspec-referer': window.location.href,
        'tildaspec-formid': formId,
        'tildaspec-formskey': formKey,
        'tildaspec-version-lib': window.tildaForm.versionLib,
        'tildaspec-pageid': pageId,
        'tildaspec-projectid': projectId,
        'tildaspec-lang': window.t_forms__lang,
      };
      for (spec in tildaSpecs) {
        var hiddenInput = form.querySelector('input[name="' + spec + '"]');
        hiddenInput ||
          (form.insertAdjacentHTML(
            'beforeend',
            '<input type="hidden" name="' + spec + '" value="">',
          ),
          (hiddenInput = form.querySelector('input[name="' + spec + '"]')),
          (hiddenInput.value = tildaSpecs[spec]));
      }
      try {
        (hiddenInput = form.querySelector('input[name=tildaspec-fp]')),
          hiddenInput ||
            (form.insertAdjacentHTML(
              'beforeend',
              '<input type="hidden" name="tildaspec-fp" value="">',
            ),
            (hiddenInput = form.querySelector('input[name=tildaspec-fp]'))),
          window.tildastat
            ? (hiddenInput.value = window.tildastat('fingerprint'))
            : (hiddenInput.value =
                'st' +
                window.pageYOffset +
                'w' +
                window.innerWidth +
                'h' +
                window.innerHeight +
                'ft' +
                form.getBoundingClientRect().top +
                window.pageYOffset);
      } catch (error) {}
      (inputItsGood = form.querySelector('.js-form-spec-comments')),
        inputItsGood && (inputItsGood.value = '');
      var formUrl = 'https://' + window.tildaForm.endpoint + '/procces/',
        dataForm = [],
        arrFilter = [];
      if (
        ((dataForm = t_serializeArray(form)),
        Array.prototype.forEach.call(dataForm, function (data) {
          -1 === data.name.indexOf('tildadelivery-') && arrFilter.push(data);
        }),
        (dataForm = arrFilter),
        window.tildaForm.tildapayment && window.tildaForm.tildapayment.products)
      )
        dataForm.push({
          name: 'tildapayment',
          value: JSON.stringify(window.tildaForm.tildapayment),
        });
      else if (form.closest('.t706__orderform')) return !1;
      window.tildaForm.tildamember &&
        window.tildaForm.tildamember.code &&
        dataForm.push({
          name: 'tildamember',
          value: JSON.stringify(window.tildaForm.tildamember),
        }),
        (dataForm = t_forms__formData(dataForm));
      var startRequest = Date.now();
      t_triggerEvent(form, 'tildaform:beforesend');
      var xhr = new XMLHttpRequest();
      return (
        xhr.open('POST', formUrl, !0),
        xhr.setRequestHeader(
          'Content-Type',
          'application/x-www-form-urlencoded; charset=UTF-8',
        ),
        xhr.setRequestHeader(
          'Accept',
          'application/json, text/javascript, */*; q=0.01',
        ),
        (xhr.onreadystatechange = function () {
          if (4 === xhr.readyState)
            if (xhr.status >= 200 && xhr.status < 400) {
              var data = xhr.responseText;
              if (data) {
                var objData = JSON.parse(data);
                if ('object' == typeof objData) {
                  var dataSuccessUrl = form.getAttribute('data-success-url'),
                    dataSuccessCallback = form.getAttribute(
                      'data-success-callback',
                    ),
                    dataFormSendedCallback = form.getAttribute(
                      'data-formsended-callback',
                    );
                  t_removeClass(btnSubmit, 't-btn_sending'),
                    (btnSubmit.tildaSendingStatus = '0');
                  try {
                    if (
                      objData &&
                      objData.redirectto &&
                      3 == objData.redirectto.length &&
                      window.tildaForm.endpoint.substring(
                        window.tildaForm.endpoint.length - 3,
                      ) != objData.redirectto
                    )
                      return (
                        (window.tildaForm.endpoint =
                          'forms.tildaapi.' + objData.redirectto),
                        window.tildaForm.send(
                          form,
                          btnSubmit,
                          formType,
                          formKey,
                        ),
                        !1
                      );
                  } catch (e) {
                    console.log('error in dc action.');
                  }
                  if (objData && objData.error) {
                    (dataSuccessUrl = ''), (dataSuccessCallback = '');
                    var msgContainers = t_forms__getErrorContainers(form, ''),
                      errorBoxes = msgContainers.errorBoxes,
                      allError = msgContainers.allError;
                    Array.prototype.forEach.call(allError, function (error) {
                      error.style.display = 'block';
                    }),
                      Array.prototype.forEach.call(
                        errorBoxes,
                        function (error) {
                          var errorWrapperText = error.querySelector(
                            '.t-form__errorbox-text',
                          );
                          errorWrapperText
                            ? (errorWrapperText.innerHTML = objData.error)
                            : (error.innerHTML = objData.error),
                            (error.style.display = 'block');
                        },
                      ),
                      t_addClass(form, 'js-send-form-error'),
                      t_triggerEvent(form, 'tildaform:aftererror'),
                      window.t_cart__discounts &&
                        window.localStorage.removeItem('tcart_discounts');
                  } else {
                    if (objData && objData.needcaptcha)
                      return formKey
                        ? void window.tildaForm.addTildaCaptcha(form, formKey)
                        : void alert('Server busy. Please try again later.');
                    var formResult = {};
                    if (objData && objData.results && objData.results[0]) {
                      var strValue = objData.results[0];
                      (strValue = strValue.split(':')),
                        (formResult.tranId = strValue[0] + ':' + strValue[1]),
                        (formResult.orderId = strValue[2] ? strValue[2] : '0'),
                        formResult.orderId &&
                          '0' !== formResult.orderId &&
                          (window.tildaForm.orderIdForStat =
                            formResult.orderId);
                    } else
                      (formResult.tranId = '0'), (formResult.orderId = '0');
                    'undefined' != typeof jQuery &&
                      jQuery(form).data('tildaformresult', formResult),
                      (form.tildaTranId = formResult.tranId),
                      (form.tildaOrderId = formResult.orderId);
                    var dataEventName =
                      form.getAttribute('data-tilda-event-name') || '';
                    dataEventName ||
                      (dataEventName =
                        'y' === dataFormCart &&
                        objData &&
                        ((objData.next &&
                          objData.next.type &&
                          ('function' !== objData.next.type ||
                            (objData.next.value &&
                              ('stripev3' === objData.next.value.sysname ||
                                'outersite' ===
                                  objData.next.value.installation)))) ||
                          !objData.next)
                          ? '/tilda/' + formId + '/payment/'
                          : '/tilda/' + formId + '/submitted/');
                    var title = 'Send data from form ' + formId,
                      price = 0,
                      product = '',
                      priceEl = form.querySelector('.js-tilda-price');
                    if (
                      window.Tilda &&
                      'function' == typeof window.Tilda.sendEventToStatistics
                    ) {
                      window.tildaForm.tildapayment &&
                      window.tildaForm.tildapayment.amount
                        ? ((price = window.tildaForm.tildapayment.amount),
                          parseFloat(price) > 0 &&
                            (title = 'Order ' + formResult.orderId))
                        : priceEl &&
                          ((price = priceEl.value),
                          parseFloat(price) > 0 &&
                            (title = 'Order ' + formResult.orderId));
                      try {
                        window.Tilda.sendEventToStatistics(
                          dataEventName,
                          title,
                          product,
                          price,
                        );
                      } catch (error) {
                        console.error(
                          'Error while sending statistics. Code status: ',
                          error,
                        );
                      }
                      window.dataLayer &&
                        window.dataLayer.push({ event: 'submit_' + formId });
                    } else {
                      try {
                        ga &&
                          'tilda' !== window.mainTracker &&
                          ga('send', {
                            hitType: 'pageview',
                            page: dataEventName,
                            title: title,
                          }),
                          window.mainMetrika &&
                            window[window.mainMetrika] &&
                            window[window.mainMetrika].hit(dataEventName, {
                              title: title,
                              referer: window.location.href,
                            });
                      } catch (error) {
                        console.error(
                          'Error while sending main metrica. Code status: ',
                          error,
                        );
                      }
                      window.dataLayer &&
                        window.dataLayer.push({ event: 'submit_' + formId });
                    }
                    try {
                      t_triggerEvent(form, 'tildaform:aftersuccess'),
                        dataFormSendedCallback && 'function' == typeof jQuery
                          ? eval(dataFormSendedCallback + '(jQuery(form));')
                          : dataFormSendedCallback &&
                            eval(dataFormSendedCallback + '(form);');
                    } catch (error) {
                      console.error(
                        'Error while call success callback. Code status: ',
                        error,
                      );
                    }
                    if (objData && objData.next && objData.next.type)
                      return (
                        window.tildaForm.payment(form, objData.next),
                        (dataSuccessUrl = ''),
                        !1
                      );
                    window.tildaForm.successEnd(
                      form,
                      dataSuccessUrl,
                      dataSuccessCallback,
                    );
                  }
                }
              }
            } else {
              var tsDelta = Date.now() - startRequest;
              t_removeClass(btnSubmit), (btnSubmit.tildaSendingStatus = '0');
              var msgContainers = t_forms__getErrorContainers(form, ''),
                errorBoxes = msgContainers.errorBoxes,
                allError = msgContainers.allError;
              if (!xhr || (0 == xhr.status && tsDelta < 100))
                Array.prototype.forEach.call(allError, function (error) {
                  error.innerHTML =
                    'Request error (sending form data). Please check internet connection...';
                });
              else {
                if (
                  xhr &&
                  (xhr.status >= 500 ||
                    408 == xhr.status ||
                    410 == xhr.status ||
                    429 == xhr.status ||
                    'timeout' == xhr.statusText) &&
                  -1 !== window.tildaForm.endpoint.indexOf('forms.tilda')
                )
                  return (
                    (window.tildaForm.endpoint = 'forms2.tildacdn.com'),
                    window.tildaForm.send(form, btnSubmit, formType, formKey),
                    !1
                  );
                xhr && xhr.responseText
                  ? Array.prototype.forEach.call(allError, function (error) {
                      error.innerHTML =
                        '[' +
                        xhr.status +
                        '] ' +
                        xhr.responseText +
                        '. Please, try again later.';
                    })
                  : xhr && xhr.statusText
                  ? Array.prototype.forEach.call(allError, function (error) {
                      error.innerHTML =
                        'Error [' +
                        xhr.status +
                        ', ' +
                        xhr.statusText +
                        ']. Please, try again later.';
                    })
                  : Array.prototype.forEach.call(allError, function (error) {
                      error.innerHTML =
                        '[' +
                        xhr.status +
                        '] Unknown error. Please, try again later.';
                    });
              }
              Array.prototype.forEach.call(allError, function (error) {
                error.style.display = 'block';
              }),
                Array.prototype.forEach.call(errorBoxes, function (error) {
                  error.style.display = 'block';
                }),
                t_addClass(form, 'js-send-form-error'),
                t_triggerEvent(form, 'tildaform:aftererror');
            }
        }),
        xhr.send(dataForm),
        !1
      );
    }
    if ('y' === form.getAttribute('data-is-formajax')) {
      var dataForm = {};
      (dataForm = t_serializeArray(form)),
        window.tildaForm.tildapayment &&
          window.tildaForm.tildapayment.amount &&
          dataForm.push({
            name: 'tildapayment',
            value: JSON.stringify(window.tildaForm.tildapayment),
          }),
        (dataForm = t_forms__formData(dataForm));
      var xhr = new XMLHttpRequest();
      return (
        xhr.open('POST', form.getAttribute('action'), !0),
        xhr.setRequestHeader(
          'Content-Type',
          'application/x-www-form-urlencoded; charset=UTF-8',
        ),
        xhr.setRequestHeader('Accept', 'text/plain, */*; q=0.01'),
        (xhr.onreadystatechange = function () {
          if (4 === xhr.readyState)
            if (xhr.status >= 200 && xhr.status < 400) {
              var successBox = form.querySelector('.js-successbox'),
                dataSuccessUrl = form.getAttribute('data-success-url'),
                dataSuccessCallback = form.getAttribute(
                  'data-success-callback',
                ),
                data;
              if (
                (t_removeClass(btnSubmit, 't-btn_sending'),
                (btnSubmit.tildaSendingStatus = '0'),
                (data = xhr.responseText))
              )
                if ('{' == data.substring(0, 1)) {
                  var objData = JSON.parse(data);
                  if ('object' == typeof objData)
                    if (objData && objData.message && 'OK' !== objData.message)
                      successBox.innerHTML = objData.message;
                    else if (objData && objData.error) {
                      var msgContainers,
                        errorBoxes = (msgContainers =
                          t_forms__getErrorContainers(
                            form,
                            'Unknown error. Please, try again later.',
                          )).errorBoxes,
                        allError = msgContainers.allError;
                      return (
                        Array.prototype.forEach.call(
                          allError,
                          function (error) {
                            (error.style.display = 'block'),
                              (error.innerHTML = objData.error);
                          },
                        ),
                        Array.prototype.forEach.call(
                          errorBoxes,
                          function (error) {
                            error.style.display = 'block';
                          },
                        ),
                        t_addClass(form, 'js-send-form-error'),
                        t_triggerEvent(form, 'tildaform:aftererror'),
                        !1
                      );
                    }
                } else
                  (successBox.innerHTML = data), t_parseScripts(successBox, '');
              var linkPage = '/tilda/' + formId + '/submitted/',
                title = 'Send data from form ' + formId;
              window.Tilda &&
              'function' == typeof window.Tilda.sendEventToStatistics
                ? window.Tilda.sendEventToStatistics(linkPage, title, '', 0)
                : 'undefined' != typeof ga && 'tilda' !== window.mainTracker
                ? ga('send', {
                    hitType: 'pageview',
                    page: linkPage,
                    title: title,
                  })
                : window.mainMetrika > '' &&
                  window[window.mainMetrika] &&
                  window[window.mainMetrika].hit(linkPage, {
                    title: title,
                    referer: window.location.href,
                  }),
                t_triggerEvent(form, 'tildaform:aftersuccess'),
                window.tildaForm.successEnd(
                  form,
                  dataSuccessUrl,
                  dataSuccessCallback,
                );
            } else {
              t_removeClass(btnSubmit, 't-btn_sending'),
                (btnSubmit.tildaSendingStatus = '0');
              var msgContainers,
                errorBoxes = (msgContainers = t_forms__getErrorContainers(
                  form,
                  '',
                )).errorBoxes,
                allError = msgContainers.allError,
                data = xhr.responseText;
              Array.prototype.forEach.call(allError, function (error) {
                data
                  ? (error.innerHTML =
                      data + '. Please, try again later. [' + xhr.status + ']')
                  : xhr.statusText
                  ? (error.innerHTML =
                      'Error [' +
                      xhr.statusText +
                      ']. Please, try again later. [' +
                      xhr.status +
                      ']')
                  : (error.innerHTML =
                      'Unknown error. Please, try again later. [' +
                      xhr.status +
                      ']'),
                  (error.style.display = 'block');
              }),
                Array.prototype.forEach.call(errorBoxes, function (error) {
                  error.style.display = 'block';
                }),
                t_addClass(form, 'js-send-form-error'),
                t_triggerEvent(form, 'tildaform:aftererror');
            }
        }),
        xhr.send(dataForm),
        !1
      );
    }
    return (
      -1 == form.getAttribute('action').indexOf(window.tildaForm.endpoint) &&
      (t_removeClass(btnSubmit, 't-btn_sending'),
      (btnSubmit.tildaSendingStatus = '3'),
      form.submit(),
      !0)
    );
  }),
  (window.validateForm = function ($jform) {
    return window.tildaForm.validate($jform);
  });
try {
  var TILDAPAGE_URL = window.location.href,
    TILDAPAGE_QUERY = '',
    TILDAPAGE_UTM = '';
  if (
    -1 !== TILDAPAGE_URL.toLowerCase().indexOf('utm_') &&
    ((TILDAPAGE_URL = TILDAPAGE_URL.toLowerCase()),
    (TILDAPAGE_QUERY = TILDAPAGE_URL.split('?')),
    (TILDAPAGE_QUERY = TILDAPAGE_QUERY[1]),
    'string' == typeof TILDAPAGE_QUERY)
  ) {
    var arPair,
      i,
      arParams = TILDAPAGE_QUERY.split('&');
    for (i in arParams)
      'function' != typeof arParams[i] &&
        ((arPair = arParams[i].split('=')),
        'utm_' == arPair[0].substring(0, 4) &&
          (TILDAPAGE_UTM = TILDAPAGE_UTM + arParams[i] + '|||'));
    if (
      TILDAPAGE_UTM.length > 0 &&
      (!window.tildastatcookie || 'no' != window.tildastatcookie)
    ) {
      var date = new Date();
      date.setDate(date.getDate() + 30),
        (document.cookie =
          'TILDAUTM=' +
          encodeURIComponent(TILDAPAGE_UTM) +
          '; path=/; expires=' +
          date.toUTCString());
    }
  }
} catch (error) {}
function t_forms__initForms() {
  var recBlocks = document.querySelectorAll(
    '.r:not([data-record-type="1093"])',
  );
  (window.t_forms__inputData = {}),
    t_forms__addRecaptcha(),
    Array.prototype.forEach.call(recBlocks, function (rec) {
      var recid = rec.id;
      window.initForms[recid] ||
        (t_forms__initEventPlaceholder(rec),
        t_forms__addInputItsGood(rec),
        t_forms__addAttrAction(rec),
        t_forms__onSubmit(rec),
        t_forms__onClick(rec),
        t_forms__onRender(rec),
        t_forms__addFocusOnTab(rec),
        t_onFuncLoad('t_throttle', function () {
          window.addEventListener(
            'resize',
            t_throttle(function () {
              t_forms__calculateInputsWidth(recid);
            }),
          );
        }),
        (window.initForms[recid] = !0));
    });
}
function t_forms__addFocusOnTab(rec) {
  if (!window.isMobile) {
    var focusableElements = rec.querySelectorAll('.t-input, .t-select');
    if (focusableElements) {
      var handlerType = null;
      document.addEventListener('keydown', function () {
        handlerType = 'keyboard';
      }),
        document.addEventListener('mousedown', function () {
          handlerType = 'mouse';
        }),
        document.addEventListener('visibilitychange', function () {
          handlerType = 'mouse';
        }),
        Array.prototype.forEach.call(
          focusableElements,
          function (focusableElement) {
            focusableElement.addEventListener('focus', function () {
              'keyboard' === handlerType &&
                ((focusableElement.classList.contains('t-input_pvis') ||
                  focusableElement.classList.contains('t-input-phonemask')) &&
                  (focusableElement = focusableElement.parentElement),
                focusableElement.classList.add('t-focusable'),
                (handlerType = null));
            }),
              focusableElement.addEventListener('blur', function () {
                focusableElement.classList.remove('t-focusable');
              });
          },
        );
    }
  }
}
function t_forms__initEventPlaceholder(rec) {
  var eventFocus = 'focus',
    eventBlur = 'blur';
  document.addEventListener ||
    ((eventFocus = 'focusin'), (eventBlur = 'focusout')),
    t_removeEventListener(rec, eventFocus, t_forms__removePlaceholder),
    t_addEventListener(rec, eventFocus, t_forms__removePlaceholder, !0),
    t_removeEventListener(rec, eventBlur, t_forms__addPlaceholder),
    t_addEventListener(rec, eventBlur, t_forms__addPlaceholder, !0);
}
function t_forms__removePlaceholder(event) {
  var input = (event = event || window.event).target || event.srcElement;
  if ('INPUT' === input.tagName) {
    var inputGroup = input.closest('[data-input-lid]'),
      strPlace = input.getAttribute('placeholder'),
      inputId = '';
    if (inputGroup) inputId = inputGroup.getAttribute('data-input-lid');
    else {
      var form = input.closest('form');
      form && (inputId = form.getAttribute('data-input-lid'));
    }
    strPlace &&
      inputId &&
      ((window.t_forms__inputData[inputId] = strPlace),
      input.setAttribute('placeholder', ''));
  }
}
function t_forms__moveToErrorInput(inputId, currentErrorItem) {
  var t_forms__focusIntoInput = function (event) {
    var input;
    event.preventDefault(), document.getElementById(inputId).focus();
  };
  currentErrorItem &&
    (currentErrorItem.removeEventListener('click', t_forms__focusIntoInput),
    currentErrorItem.addEventListener('click', t_forms__focusIntoInput));
}
function t_forms__addPlaceholder(event) {
  var input = (event = event || window.event).target || event.srcElement,
    inputGroup = input.closest('[data-input-lid]'),
    inputId = '';
  if (inputGroup) inputId = inputGroup.getAttribute('data-input-lid');
  else {
    var form = input.closest('form');
    form && (inputId = form.getAttribute('data-input-lid'));
  }
  var strPlace = window.t_forms__inputData[inputId] || '';
  strPlace &&
    inputId &&
    (input.setAttribute('placeholder', strPlace),
    (window.t_forms__inputData[inputId] = ''));
}
function t_forms__addInputItsGood(rec) {
  var allForms = rec.querySelectorAll('.js-form-proccess[data-formactiontype]');
  Array.prototype.forEach.call(allForms, function (form) {
    var formActionType = form.getAttribute('data-formactiontype'),
      inputItsGood = form.querySelector('input[name="form-spec-comments"]');
    '1' === formActionType ||
      inputItsGood ||
      form.insertAdjacentHTML(
        'beforeend',
        '<div style="position: absolute; left: -5000px; bottom: 0; display: none;"><input type="text" name="form-spec-comments" value="Its good" class="js-form-spec-comments" tabindex="-1" /></div>',
      );
  });
}
function t_forms__addAttrAction(rec) {
  var allForms = rec.querySelectorAll('.js-form-proccess');
  Array.prototype.forEach.call(allForms, function (form) {
    var formType;
    '2' === form.getAttribute('data-formactiontype') &&
      form.setAttribute('action', '#');
  });
}
function t_forms__calculateInputsWidth(recId) {
  recId && (recId = recId.replace('rec', ''));
  var rec = document.querySelector('#rec' + recId);
  if (
    (recId ||
      (!document.body.classList.contains('t706__body_cartwinshowed') &&
        !document.body.classList.contains('t706__body_cartpageshowed')) ||
      (rec = document.querySelector('.t706')),
    rec)
  ) {
    var formWrapper = rec.querySelector('.t-form__inputsbox');
    if (formWrapper) {
      formWrapper.closest('.t706') &&
        formWrapper.classList.add('t-form__inputsbox_inrow');
      var fields = rec.querySelectorAll(
        '.t-input-group_widthdef, .t-input-group_inrow',
      );
      if (
        (formWrapper.classList.contains('t-form__inputsbox_inrow') ||
          (fields = rec.querySelectorAll('.t-input-block_width')),
        0 !== fields.length)
      ) {
        (formWrapper.classList.contains('t-form__inputsbox_vertical-form') ||
          formWrapper.closest('.t706')) &&
          formWrapper.classList.add('t-form__inputsbox_flex');
        var formWrapperWidth = formWrapper.offsetWidth,
          fieldsType = ['rd', 'ri', 'uc', 'ws', 'hd', 'fr', 'st'];
        Array.prototype.forEach.call(fields, function (field) {
          if (
            (formWrapper.classList.contains('t-form__inputsbox_inrow') ||
              (field = field.closest('.t-input-group')),
            field &&
              field.classList.contains('t-input-group_inrow-withsibling'))
          ) {
            var nextField = field.nextElementSibling,
              incorrectType = fieldsType.filter(function (type) {
                return nextField.classList.contains('t-input-group_' + type);
              });
            if (
              !nextField ||
              0 !== incorrectType.length ||
              !(
                (nextField.classList.contains('t-input-group_inrow') &&
                  !field.classList.contains('t-input-group_widthdef')) ||
                (field.classList.contains('t-input-group_widthdef') &&
                  nextField.classList.contains('t-input-group') &&
                  !nextField.classList.contains('t-input-group_inrow'))
              )
            )
              return (
                field.classList.remove('t-input-group_inrow-withsibling'),
                void field.classList.add('t-input-group_inrow-last')
              );
            nextField.classList.add('t-input-group_inonerow');
          } else field.classList.add('t-input-group_inrow-last');
          nextField &&
            field.classList.contains('t-input-group_widthdef') &&
            field.classList.contains('t-input-group_inrow-withsibling') &&
            nextField.classList.contains('t-input-group_inonerow') &&
            !nextField.classList.contains('t-input-group_inrow') &&
            (nextField.classList.add('t-input-group_widthdef'),
            nextField.classList.contains('t-input-group_inrow-withsibling') ||
              nextField.classList.add('t-input-group_inrow-last'),
            nextField.classList.contains('t-input-group_inrow') &&
              field.classList.add('t-input-group_inrow-last')),
            formWrapper.classList.contains('t-form__inputsbox_inrow') ||
              t_forms__calculateFieldsWidthInJS(field, formWrapperWidth);
        });
        var allLastFieldsWithCertainWidth = rec.querySelectorAll(
          '.t-input-group_inrow.t-input-group_inonerow.t-input-group_inrow-last',
        );
        allLastFieldsWithCertainWidth.length > 0 &&
          t_forms__moveFieldToNextRow(allLastFieldsWithCertainWidth);
        var allLastFieldsWithDefWidth = rec.querySelectorAll(
          '.t-input-group_widthdef.t-input-group_inrow-last',
        );
        formWrapper.classList.contains('t-form__inputsbox_inrow') &&
          allLastFieldsWithDefWidth.length > 0 &&
          t_forms__combineFieldsWithDefWidth(allLastFieldsWithDefWidth, recId);
      }
    }
  }
}
function t_forms__moveFieldToNextRow(allLastFields) {
  var rows;
  t_forms__createArrWithAllRows(allLastFields, 't-input-group_inrow').forEach(
    function (row) {
      var isLongNextField = !1;
      if (
        (row.forEach(function (field) {
          field.classList.contains('t-input-group_inrow-last') &&
            field.nextElementSibling &&
            !field.nextElementSibling.classList.contains(
              't-input-group_inonerow',
            ) &&
            (isLongNextField = !0);
        }),
        !isLongNextField)
      ) {
        var commonWidth = row.reduce(function (sum, field) {
          var fieldClasses,
            widthClass = field.classList.value
              .split(' ')
              .filter(function (fieldClass) {
                return -1 !== fieldClass.indexOf('t-input-group_width');
              }),
            characterQuantity = 2,
            fieldWidth;
          return (
            -1 !== (widthClass = widthClass[0]).indexOf('100') &&
              (characterQuantity = 3),
            sum +
              Number(
                widthClass.substr(widthClass.length - 2, characterQuantity),
              )
          );
        }, 0);
        commonWidth <= 100 ||
          row.forEach(function (field) {
            field.classList.contains('t-input-group_inrow-last') &&
              ((field.style.marginRight =
                'calc(100% - (' + (commonWidth - 100) + '%)'),
              (field.style.flex = '0 0 auto'));
          });
      }
    },
  );
}
function t_forms__combineFieldsWithDefWidth(allLastFields, recId) {
  var allRowsWithDefWidth = [],
    rows;
  t_forms__createArrWithAllRows(
    allLastFields,
    't-input-group_widthdef',
  ).forEach(function (row) {
    var maxRowLength = 4;
    if (row.length > 4)
      for (var i = 0; i < row.length; i += 4) {
        var newRow = row.slice(i, i + 4);
        allRowsWithDefWidth.push(newRow);
      }
    else allRowsWithDefWidth.push(row);
  }),
    allRowsWithDefWidth.forEach(function (row) {
      var rowWidth,
        widthClass =
          't-input-group_width' +
          ({ 4: '25', 3: '33', 2: '50' }[row.length] || '100');
      row.forEach(function (field) {
        if (
          (field.classList.add(widthClass),
          field.classList.contains('t-input-group_rg'))
        ) {
          var lid = field.getAttribute('data-input-lid');
          t_input_range_init(recId, lid);
        }
      });
    });
}
function t_forms__createArrWithAllRows(allLastFields, certainClass) {
  var allSequences = [],
    oneSequence = [];
  return (
    Array.prototype.forEach.call(allLastFields, function (field) {
      for (
        oneSequence.push(field);
        field.previousElementSibling &&
        field.previousElementSibling.classList.contains(certainClass) &&
        !field.previousElementSibling.classList.contains(
          't-input-group_inrow-last',
        );

      )
        (field = field.previousElementSibling), oneSequence.push(field);
      allSequences.push(oneSequence.reverse()), (oneSequence = []);
    }),
    allSequences
  );
}
function t_forms__calculateFieldsWidthInJS(field, formWrapperWidth) {
  var marginLeft = 15,
    columns = {
      1: 't-input-block_width100',
      2: 't-input-block_width50',
      3: 't-input-block_width33',
      4: 't-input-block_width25',
    };
  for (var i in columns)
    if (field.classList.contains(columns[i])) {
      field.style.width = (formWrapperWidth - 15 * (i - 1)) / i + 'px';
      var label = field.previousElementSibling;
      label &&
        label.classList.contains('t-input-title') &&
        (label.style.width = (formWrapperWidth - 15 * (i - 1)) / i + 'px'),
        window.innerWidth < 480 &&
          (field && (field.style.width = '100%'),
          label && (label.style.width = '100%'));
    }
}
function t_forms__onSubmit(rec) {
  var allForms = rec.querySelectorAll('.js-form-proccess');
  Array.prototype.forEach.call(allForms, function (form) {
    t_removeEventListener(form, 'submit', t_forms__submitEvent),
      t_addEventListener(form, 'submit', t_forms__submitEvent);
  });
}
function t_forms__onClick(rec) {
  t_addEventListener(rec, 'dblclick', t_forms__initBtnDblClick),
    t_removeEventListener(rec, 'click', t_forms__initBtnClick),
    t_addEventListener(rec, 'click', t_forms__initBtnClick);
}
function t_forms__initBtnDblClick(event) {
  var target;
  if (
    ((event = event || window.event).target || event.srcElement).closest(
      '[type="submit"]',
    )
  )
    return (
      event.preventDefault ? event.preventDefault() : (event.returnValue = !1),
      !1
    );
}
function t_forms__initBtnClick(event) {
  var target = (event = event || window.event).target || event.srcElement,
    btnSubmit = !!target.closest('[type="submit"]') && target;
  if (btnSubmit) {
    var form = btnSubmit.closest('.js-form-proccess');
    if (form) {
      event.preventDefault ? event.preventDefault() : (event.returnValue = !1);
      var formId = form.getAttribute('id'),
        arrErrors = [],
        btnStatus = '';
      if (
        (btnSubmit.tildaSendingStatus &&
          (btnStatus = btnSubmit.tildaSendingStatus),
        !(
          (btnStatus && btnStatus >= 1) ||
          t_hasClass(btnSubmit, 't706__submit_disable')
        ))
      ) {
        if (
          (t_addClass(btnSubmit, 't-btn_sending'),
          (btnSubmit.tildaSendingStatus = '1'),
          window.tildaForm.hideErrors(form),
          (arrErrors = window.tildaForm.validate(form)),
          window.tildaForm.showErrors(form, arrErrors))
        )
          return (
            t_removeClass(btnSubmit, 't-btn_sending'),
            void (btnSubmit.tildaSendingStatus = '0')
          );
        var allRecords,
          formKey = document
            .getElementById('allrecords')
            .getAttribute('data-tilda-formskey'),
          formType = parseInt(form.getAttribute('data-formactiontype')),
          inputsServices;
        if (
          !form.querySelectorAll('.js-formaction-services').length &&
          1 !== formType &&
          !formKey
        ) {
          var msgContainers = t_forms__getErrorContainers(form, ''),
            errorBoxes = msgContainers.errorBoxes,
            allError = msgContainers.allError;
          return (
            Array.prototype.forEach.call(allError, function (error) {
              (error.innerHTML = 'Please set receiver in block with forms'),
                (error.style.display = 'block');
            }),
            Array.prototype.forEach.call(errorBoxes, function (box) {
              box.style.display = 'block';
            }),
            t_addClass(form, 'js-send-form-error'),
            t_removeClass(btnSubmit, 't-btn_sending'),
            (btnSubmit.tildaSendingStatus = '0'),
            void t_triggerEvent(form, 'tildaform:aftererror')
          );
        }
        if (form.querySelector('.g-recaptcha') && grecaptcha) {
          window.tildaForm.currentFormProccessing = {
            form: form,
            btn: btnSubmit,
            formtype: formType,
            formskey: formKey,
          };
          var captchaId = form.tildaCaptchaClientId;
          if (captchaId) grecaptcha.reset(captchaId);
          else {
            var opts = {
              size: 'invisible',
              sitekey: form.getAttribute('data-tilda-captchakey'),
              callback: window.tildaForm.captchaCallback,
            };
            (captchaId = grecaptcha.render(formId + 'recaptcha', opts)),
              (form.tildaCaptchaClientId = captchaId);
          }
          grecaptcha.execute(captchaId);
        } else window.tildaForm.send(form, btnSubmit, formType, formKey);
      }
    }
  }
}
function t_forms__onRender(rec) {
  var ist396;
  !!rec.querySelector('.t396') &&
    (t_removeEventListener(rec, 'render', t_forms__renderEvent),
    t_addEventListener(rec, 'render', t_forms__renderEvent));
}
function t_forms__renderEvent() {
  t_forms__onSubmit(this);
}
function t_forms__submitEvent(event) {
  var form = event;
  if ((event.target && (form = event.target), form)) {
    var btnSubmit = form.querySelector('[type="submit"]'),
      btnStatus = '';
    btnSubmit &&
      btnSubmit.tildaSendingStatus &&
      (btnStatus = btnSubmit.tildaSendingStatus),
      btnStatus && '3' === btnStatus
        ? (btnSubmit.tildaSendingStatus = '')
        : (btnSubmit &&
            !t_hasClass(btnSubmit, 't706__submit_disable') &&
            btnSubmit.click(),
          event.preventDefault
            ? event.preventDefault()
            : (event.returnValue = !1));
  }
}
function t_asyncLoad(input) {
  var dataMask = input.getAttribute('data-tilda-mask'),
    dataPlaceholder = input.getAttribute('data-tilda-mask-holder'),
    dataInit = input.getAttribute('data-tilda-mask-init');
  dataMask &&
    !dataInit &&
    (dataPlaceholder
      ? t_onFuncLoad('t_customMask__mask', function () {
          t_customMask__mask(input, dataMask, { placeholder: dataPlaceholder });
        })
      : t_onFuncLoad('t_customMask__mask', function () {
          t_customMask__mask(input, dataMask);
        }),
    input.setAttribute('data-tilda-mask-init', '1'));
}
function t_forms__getErrorContainers(form, innerText) {
  var errorBoxes = form.querySelectorAll('.js-errorbox-all'),
    allError = form.querySelectorAll('.js-errorbox-all .js-rule-error-all');
  return (
    errorBoxes.length ||
      (form.insertAdjacentHTML(
        'afterbegin',
        '<div class="js-errorbox-all"></div>',
      ),
      (errorBoxes = form.querySelectorAll('.js-errorbox-all'))),
    allError.length ||
      (Array.prototype.forEach.call(errorBoxes, function (error) {
        error.insertAdjacentHTML(
          'beforeend',
          '<p class="js-rule-error-all">' + innerText + '</p>',
        );
      }),
      (allError = form.querySelectorAll(
        '.js-errorbox-all .js-rule-error-all',
      ))),
    { errorBoxes: errorBoxes, allError: allError }
  );
}
function t_forms__addRecaptcha() {
  var allRecaptchas = document.querySelectorAll('.js-tilda-captcha');
  Array.prototype.forEach.call(allRecaptchas, function (recaptcha) {
    var captchaKey = recaptcha.getAttribute('data-tilda-captchakey');
    if (captchaKey) {
      var formId = recaptcha.getAttribute('id');
      if (!window.tildaForm.isRecaptchaScriptInit) {
        var head = document.head,
          script = document.createElement('script');
        (window.tildaForm.isRecaptchaScriptInit = !0),
          (script.type = 'text/javascript'),
          (script.src =
            'https://www.google.com/recaptcha/api.js?render=explicit'),
          (script.async = !0),
          head.appendChild(script),
          head.insertAdjacentHTML(
            'beforeend',
            '<style type="text/css">.js-send-form-success .grecaptcha-badge {display: none;}</style>',
          );
      }
      document.getElementById(formId + 'recaptcha') ||
        recaptcha.insertAdjacentHTML(
          'beforeend',
          '<div id="' +
            formId +
            'recaptcha" class="g-recaptcha" data-sitekey="' +
            captchaKey +
            '" data-callback="window.tildaForm.captchaCallback" data-size="invisible"></div>',
        );
    } else t_removeClass(recaptcha, 'js-tilda-captcha');
  });
}
function t_forms__getMsg(msg) {
  var dict = [],
    lang = window.t_forms__lang;
  return (
    (dict.EN = {
      success: 'Thank you! Your data has been submitted.',
      successorder:
        'Thank you! Order created. Please wait while you are redirected to the payment page...',
      email: 'Please enter a valid email address',
      url: 'Please put a correct URL',
      phone: 'Please put a correct phone number',
      number: 'Please put a correct number',
      date: 'Please put a correct date',
      time: 'Please put a correct time (HH:mm)',
      name: 'Please put a name',
      namerus: 'Please put a correct name (only cyrillic letters)',
      nameeng: 'Please put a correct name (only latin letters)',
      string:
        'You put incorrect symbols. Only letters, numbers and punctuation symbols are allowed',
      req: 'Please fill out all required fields',
      reqfield: 'Required field',
      minlength: 'Value is too short',
      maxlength: 'Value too big',
      emptyfill: 'None of the fields are filled in',
      chosevalue: 'Please select an address from the options',
      deliveryreq:
        'It is not possible to place an order without delivery. Please refresh the page and try again',
      promocode: 'Please activate promo code or clear input field',
    }),
    (dict.RU = {
      success: 'Спасибо! Данные успешно отправлены.',
      successorder:
        'Спасибо! Заказ оформлен. Пожалуйста, подождите. Идет переход к оплате...',
      email: 'Укажите, пожалуйста, корректный email',
      url: 'Укажите, пожалуйста, корректный URL',
      phone: 'Укажите, пожалуйста, корректный номер телефона',
      number: 'Укажите, пожалуйста, корректный номер',
      date: 'Укажите, пожалуйста, корректную дату',
      time: 'Укажите, пожалуйста, корректное время (ЧЧ:ММ)',
      name: 'Укажите, пожалуйста, имя',
      namerus: 'Укажите, пожалуйста, имя (только кириллица)',
      nameeng: 'Укажите, пожалуйста, имя (только латиница)',
      string:
        'Вы написали некорректные символы. Разрешены только буквы, числа и знаки пунктуации',
      req: 'Пожалуйста, заполните все обязательные поля',
      reqfield: 'Обязательное поле',
      minlength: 'Слишком короткое значение',
      maxlength: 'Слишком длинное',
      emptyfill: 'Ни одно поле не заполнено',
      chosevalue: 'Пожалуйста, выберите адрес из предложенных вариантов',
      deliveryreq:
        'Невозможно оформить заказ без доставки. Пожалуйста, перезагрузите страницу и попробуйте еще раз.',
      promocode: 'Активируйте, пожалуйста, промокод или очистите поле',
    }),
    'function' == typeof t_forms__getDict &&
      'RU' !== lang &&
      'EN' !== lang &&
      (dict = t_forms__getDict()),
    dict[lang] ? dict[lang][msg] : dict.EN[msg]
  );
}
function checkVerifyTildaCaptcha(event) {
  if (
    -1 !==
    (event = event || window.event).origin.indexOf(window.tildaForm.endpoint)
  ) {
    var tildaCaptcha = document.getElementById('js-tildaspec-captcha'),
      formCaptchaBox = document.getElementById('tildaformcaptchabox');
    if ('closeiframe' == event.data)
      return (
        formCaptchaBox && t_removeEl(formCaptchaBox),
        void (tildaCaptcha && t_removeEl(tildaCaptcha))
      );
    var capthaKey = event.data;
    if (tildaCaptcha) {
      (tildaCaptcha.value = capthaKey),
        formCaptchaBox && t_removeEl(formCaptchaBox);
      var form = tildaCaptcha.closest('form');
      form && t_forms__submitEvent(form);
    }
  }
}
function t_parseScripts(main, className) {
  var scripts = main.querySelectorAll(className + 'script');
  Array.prototype.forEach.call(scripts, function (oldScript) {
    for (
      var newScript = document.createElement('script'), j = 0;
      j < oldScript.attributes.length;
      j++
    ) {
      var attr = oldScript.attributes[j];
      newScript.setAttribute(attr.name, attr.value);
    }
    if (oldScript.innerHTML.length)
      newScript.appendChild(document.createTextNode(oldScript.innerHTML)),
        oldScript.parentNode.replaceChild(newScript, oldScript);
    else {
      var script = document.createElement('script');
      (script.src = oldScript.attributes.src.value),
        main.appendChild(script),
        t_removeEl(oldScript);
    }
  });
}
function t_forms__onSuccess(form) {
  form instanceof Element || (form = form[0]);
  var rec = form.closest('.r'),
    recType = rec.getAttribute('data-record-type'),
    inputWrapper = form.querySelector('.t-form__inputsbox'),
    inputWrapperStyle = getComputedStyle(inputWrapper, null),
    inputWrapperPaddingTop = parseInt(inputWrapperStyle.paddingTop) || 0,
    inputWrapperPaddingBottom = parseInt(inputWrapperStyle.paddingBottom) || 0,
    inputWrapperHeight,
    inputOffset,
    inputBottom =
      inputWrapper.clientHeight -
      (inputWrapperPaddingTop + inputWrapperPaddingBottom) +
      (inputWrapper.getBoundingClientRect().top + window.pageYOffset),
    successBox,
    successBoxOffset =
      form.querySelector('.t-form__successbox').getBoundingClientRect().top +
      window.pageYOffset,
    target = 0,
    windowHeight = window.innerHeight,
    body = document.body,
    html = document.documentElement,
    documentHeight = Math.max(
      body.scrollHeight,
      body.offsetHeight,
      html.clientHeight,
      html.scrollHeight,
      html.offsetHeight,
    );
  if (121 == recType) {
    var successCallbackName = form.getAttribute('data-success-callback');
    successCallbackName &&
      (recType = successCallbackName.split('_onSuccess')[0].replace('t', ''));
  }
  var inputsboxHiddenClassName = 't' + recType + '__inputsbox_hidden',
    arrNotScroll = [702, 708, 862, 945, 1014, 1114],
    isScroll = !0;
  target =
    window.innerWidth > 960 ? successBoxOffset - 200 : successBoxOffset - 100;
  var tildaLabel = document.querySelector('.t-tildalabel');
  if (
    successBoxOffset > window.scrollY ||
    documentHeight - inputBottom < windowHeight - 100
  )
    inputWrapper.classList.add(inputsboxHiddenClassName),
      windowHeight > documentHeight &&
        tildaLabel &&
        setTimeout(function () {
          t_fadeOut(tildaLabel);
        }, 300);
  else {
    for (var i = 0; i < arrNotScroll.length; i++)
      if (arrNotScroll[i] == recType) {
        isScroll = !1;
        break;
      }
    isScroll && t_forms__scrollBeginForm(target),
      setTimeout(function () {
        inputWrapper.classList.add(inputsboxHiddenClassName);
      }, 400);
  }
  var successUrl = form.getAttribute('data-success-url');
  if (
    (successUrl &&
      setTimeout(function () {
        window.location.href = successUrl;
      }, 500),
    835 == recType || 862 == recType)
  ) {
    var prevBtn = rec.querySelector('.t' + recType + '__btn_prev'),
      quizWrapper = rec.querySelector('.t' + recType + '__wrapper'),
      quizFormWrapper = rec.querySelector(
        '.t' + recType + '__quiz-form-wrapper',
      );
    prevBtn && (prevBtn.style.display = 'none'),
      quizWrapper && (quizWrapper.style.minHeight = ''),
      quizFormWrapper && (quizFormWrapper.style.minHeight = '');
  }
}
function t_forms__scrollBeginForm(target) {
  var duration = 400,
    start =
      (window.pageYOffset || document.documentElement.scrollTop) -
      (document.documentElement.clientTop || 0),
    change = target - start,
    currentTime = 0,
    increment = 16;
  function t_forms__easeInOutCubic(currentTime) {
    return (currentTime /= 200) < 1
      ? (change / 2) * currentTime * currentTime * currentTime + start
      : (change / 2) * ((currentTime -= 2) * currentTime * currentTime + 2) +
          start;
  }
  function t_forms__animateScroll() {
    (currentTime += 16),
      window.scrollTo(0, t_forms__easeInOutCubic(currentTime)),
      currentTime < 400
        ? setTimeout(t_forms__animateScroll, 16)
        : document.body.removeAttribute('data-scrollable');
  }
  document.body.setAttribute('data-scrollable', 'true'),
    t_forms__animateScroll();
}
function t_removeEl(el) {
  el && el.parentNode && el.parentNode.removeChild(el);
}
Array.prototype.some ||
  (Array.prototype.some = function (fn) {
    'use strict';
    if (null == this)
      throw new TypeError('Array.prototype.some called on null or undefined');
    if ('function' != typeof fn) throw new TypeError();
    for (
      var t = Object(this),
        len = t.length >>> 0,
        thisArg = arguments.length >= 2 ? arguments[1] : void 0,
        i = 0;
      i < len;
      i++
    )
      if (i in t && fn.call(thisArg, t[i], i, t)) return !0;
    return !1;
  }),
  (function (e) {
    var matches =
      e.matches ||
      e.matchesSelector ||
      e.webkitMatchesSelector ||
      e.mozMatchesSelector ||
      e.msMatchesSelector ||
      e.oMatchesSelector;
    e.matches = e.matchesSelector =
      matches ||
      function matches(selector) {
        var matches = document.querySelectorAll(selector),
          th = this;
        return Array.prototype.some.call(matches, function (e) {
          return e === th;
        });
      };
  })(Element.prototype),
  Element.prototype.closest ||
    (Element.prototype.closest = function (s) {
      for (var el = this; el && 1 === el.nodeType; ) {
        if (Element.prototype.matches.call(el, s)) return el;
        el = el.parentElement || el.parentNode;
      }
      return null;
    }),
  String.prototype.trim ||
    (String.prototype.trim = function () {
      return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
    }),
  Array.prototype.indexOf ||
    (Array.prototype.indexOf = function (searchElement, fromIndex) {
      'use strict';
      var k;
      if (null == this) throw new TypeError('"this" is null or not defined');
      var o = Object(this),
        len = o.length >>> 0;
      if (0 === len) return -1;
      var n = 0 | fromIndex;
      if (n >= len) return -1;
      for (k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); k < len; k++)
        if (k in o && o[k] === searchElement) return k;
      return -1;
    });
var t_forms__htmlEvents = {
  onblur: 1,
  onchange: 1,
  onfocus: 1,
  onsubmit: 1,
  onclick: 1,
  ondblclick: 1,
  onkeydown: 1,
  onkeypress: 1,
  onpaste: 1,
  oninput: 1,
};
function t_removeEventListener(el, eventName, callback) {
  el.removeEventListener
    ? el.removeEventListener(eventName, callback, !1)
    : el.detachEvent && t_forms__htmlEvents['on' + eventName]
    ? el.detachEvent('on' + eventName, callback)
    : (el['on' + eventName] = null);
}
function t_addEventListener(el, eventName, callback, options) {
  el.addEventListener
    ? el.addEventListener(eventName, callback, options)
    : el.attachEvent && t_forms__htmlEvents['on' + eventName]
    ? el.attachEvent('on' + eventName, callback)
    : (el['on' + eventName] = callback);
}
function t_serializeArray(form) {
  for (
    var arr = [],
      elements = form.querySelectorAll('input, textarea, button, select'),
      i = 0;
    i < elements.length;
    i++
  ) {
    var inputGroup = elements[i].closest('.t-input-group');
    if (
      !(
        !elements[i].name ||
        elements[i].disabled ||
        ['file', 'reset', 'submit', 'button'].indexOf(elements[i].type) > -1 ||
        (inputGroup && inputGroup.getAttribute('data-hidden-by-condition'))
      )
    )
      if ('select-multiple' !== elements[i].type)
        (['checkbox', 'radio'].indexOf(elements[i].type) > -1 &&
          !elements[i].checked) ||
          arr.push({ name: elements[i].name, value: elements[i].value });
      else
        for (var options = elements[i].options, j = 0; j < options.length; j++)
          options[j].selected &&
            arr.push({ name: options[j].name, value: options[j].value });
  }
  return arr;
}
function t_addClass(el, className) {
  document.body.classList
    ? el.classList.add(className)
    : (el.className += (el.className ? ' ' : '') + className);
}
function t_removeClass(el, className) {
  document.body.classList
    ? el.classList.remove(className)
    : (el.className = el.className
        .replace(new RegExp('(^|\\s+)' + className + '(\\s+|$)'), ' ')
        .replace(/^\s+/, '')
        .replace(/\s+$/, ''));
}
function t_hasClass(el, className) {
  return document.body.classList
    ? el.classList.contains(className)
    : new RegExp('(\\s|^)' + className + '(\\s|$)').test(el.className);
}
function t_forms__formData(obj) {
  for (var data = '', i = 0; i < obj.length; i++)
    '' !== data && (data += '&'),
      (data +=
        encodeURIComponent(obj[i].name) +
        '=' +
        encodeURIComponent(obj[i].value));
  return data.replace(/%20/g, '+');
}
function t_fadeOut(el) {
  if ('none' !== el.style.display)
    var opacity = 1,
      timer = setInterval(function () {
        (el.style.opacity = opacity),
          (opacity -= 0.1) <= 0.1 &&
            (clearInterval(timer),
            (el.style.display = 'none'),
            (el.style.opacity = null));
      }, 30);
}
function t_fadeIn(el) {
  if ('block' !== el.style.display) {
    var opacity = 0;
    (el.style.opacity = opacity), (el.style.display = 'block');
    var timer = setInterval(function () {
      (el.style.opacity = opacity),
        (opacity += 0.1) >= 1 && clearInterval(timer);
    }, 30);
  }
}
function t_triggerEvent(el, eventName) {
  var event;
  document.createEvent
    ? (event = document.createEvent('HTMLEvents')).initEvent(eventName, !0, !1)
    : document.createEventObject &&
      ((event = document.createEventObject()).eventType = eventName),
    (event.eventName = eventName),
    el.dispatchEvent
      ? el.dispatchEvent(event)
      : el.fireEvent
      ? el.fireEvent('on' + event.eventType, event)
      : el[eventName]
      ? el[eventName]()
      : el['on' + eventName] && el['on' + eventName]();
}
